package phapp.springSecurity;

/**
 * session超时常量类
 * 
 * @author pch 2012.10.16
 * 
 */
public class SpringSecurityConstant {
	/**
	 * 超时跳转该页面
	 */
	//public static final String TIMTOUT_URL = "/timeOut.jsp";
   public static final String TIMTOUT_URL = "/timeout.jsp";
   
	/**
	 * 超时时给session中setAttribute该属性为true
	 */
	public static final String TIMEOUT_MARK = "invalid";
	/**
	 * 登录表单用户名的输入框name
	 */
	public static final String LOGON_USERNAME = "j_username";
	/**
	 * 项目
	 */
	public static final String REQUEST_LOGON = "/mas/";
	/**
	 * 请求是登陆页面
	 */
	public static final String REQUEST_LOGON_URL = "/login.jsp";
	/**
	 * 超时
	 */
	public static final String TIMEOUT_ERROR_URL = "/login.jsp??error=9";
	/**
	 * 跳转到登陆页面
	 */
	public static final String LOGON_URL = "/login.jsp";
	/**
	 * 页面传回的验证码
	 */
	public static final String CODE = "code";
	/**
	 * 生成的存入session中的验证码变量
	 */
	public static final String SESSION_CODE = "rand";
	/**
	 * 验证码错误跳转到登陆页面
	 */
	public static final String VALIDE_ERROR_URL = "/login.jsp?error=2";
	/**
	 * 用户名和机构不匹配跳转到登陆页面
	*/
	public static final String ORGAN_ERROR_URL = "/login.jsp?error=3";
	/**
	 * 验证码生成页面
	 */
	public static final String CODE_JSP = "code.jsp";
	/**
	 * 非JSP页面
	 */
	public static final String NOT_JSP = ".jsp";
	/**
	 * 存储用户名的变量名
	 */
	public static final String SPRING_SECURITY_LAST_NAME = "SPRING_SECURITY_LAST_USERNAME";
	
	
	public static boolean noUser = true;

}
